import pltx 
import numpy as np
y_true = [1, 1, 1, 0, 0, 0]
y_pred = [1, 0, 1, 0, 0, 0]
y_prob = [0.9, 0.1, 0.8, 0.2, 0.7, 0.3]
x = ['2024-12-01', '2024-12-02', '2024-12-03', '2024-12-04', '2024-12-05', '2024-12-06']

y_true = np.array(y_true)
# print(y_true.shape, len(y_true.shape))
# pltx.plot_roc(y_true, y_prob)
# pltx.plot_confusion_matrix2(y_true, y_pred)

pltx.plot_lines(y_true, y_pred, y_prob, x=x, labels=['A', 'B', 'C'], linewidth=5, markersize=20)


import matplotlib.pyplot as plt
 
# 生成数据
x = np.linspace(0, 10, 100)
data = np.column_stack((np.sin(x), np.cos(x)))
 
# 使用一次plot调用绘制所有曲线
# plt.plot(x, data)
 
# # 显示图表
# plt.show()

